package com.springboot.astra.util;

import java.util.List;
import java.util.stream.Collectors;

public class ListUtils {
    public static List removeDuplicate(List list) throws Exception{
        List newList = (List) list.stream().distinct().collect(Collectors.toList());
        return newList;
    }
}
